/*
 * Factory dinamica de Leilao.
 */
public class LeilaoFactory {

	@SuppressWarnings(value="all")
	public static ILeilao create() {
		ILeilao leilao = null;
		ClassLoader classLoader = LeilaoFactory.class.getClassLoader();
		try {
			Class classeLeilao = classLoader.loadClass(
					PropertiesLoaderImpl.getValor("TipoLeilao"));
			leilao = (ILeilao) classeLeilao.newInstance();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return leilao;
	}


}
